import request from "@/utils/request";

export const reqPublishBook = (book) => request({url: '/book/publish', method: "post", data: {...book}})
export const reqDeleteBook = (title) => request({url: '/book/delete', params: {title}})
export const reqUpdateBook = (book) => request({url: '/book/update', method: "post", data: {...book}})
export const reqReadBook = (title) => request({url: '/book/read', params: {title}})
export const reqReadBookInfo = (title) => request({url: '/book/info', params: {title}})
export const reqUserBorrowBook = (userId) => request({url: '/book/userborrow', params: {userId}})
